package com.woniuxy.main.login_yjj.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.main.login_yjj.mapper.LoginMapper;
import com.woniuxy.main.login_yjj.pojo.LoginUser;
import com.woniuxy.main.login_yjj.pojo.User_Yjj;
import com.woniuxy.main.login_yjj.pojo.venue;

import org.springframework.stereotype.Service;

import lombok.Data;


@Data
@Service
@Transactional		//事务
public class ServiceImp implements LoginService {
 @Autowired
 private LoginMapper mapper;

	@Override
	public LoginUser finduser(LoginUser loginUser) {
		System.out.println(loginUser);
		LoginUser lu=mapper.finduser(loginUser);
		System.out.println(lu);
		return lu;
	}

	
	@Override
	public void adduser(LoginUser loginUser) {
		mapper.adduser(loginUser);		
	}

	
	@Override
	public LoginUser login(LoginUser loginUser) {
		return mapper.login(loginUser);
	}

	
	@Override
	public void updatp(LoginUser loginUser) {
		mapper.updatp(loginUser);
	}

	
	@Override
	public User_Yjj findUserByPhone(String phone) {		
		return mapper.findUserByPhone(phone);
	}

	
	@Override
	public LoginUser findpm(LoginUser loginUser) {
		return mapper.findpm(loginUser);
	}


	@Override
	public List<User_Yjj> findcoch() {
		// TODO Auto-generated method stub
		return mapper.findcoch();
	}


	@Override
	public List<User_Yjj> findus() {
		// TODO Auto-generated method stub
		return mapper.findus();
	}


	@Override
	public List<venue> findvenue() {
		// TODO Auto-generated method stub
		return mapper.findvenue();
	}
	
	
}
